/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package locusts;

import java.awt.BorderLayout;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JFrame;

/**
 *
 * @author hamish
 */
public class ClientWindow extends JFrame {

    
    public ClientWindow() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("Boids Demos");
        setSize(600, 600);
        newGame();
        setVisible(true);
    }

    public void newGame() {

        Game game = new Game(100);

        final DrawArea panel = new DrawArea(game);
        panel.setSize(600, 600);
        getContentPane().add(panel, BorderLayout.CENTER);


        
    }

}
